<template>
  <view class="shop-inline">
    <web-view :src="url"></web-view>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        url:''
      };
    },
    onShow() {
      uni.setNavigationBarTitle({
        title:'积分商城'
      })
      setTimeout(()=>{
        this.url = `https://0.yahedso.com/i/#/pages/mainPages/tabsPage/index?channel=${this.$channel}&t=${Date.now()}`
        const token = uni.getStorageSync('token')
        if(token){
          this.url = `https://0.yahedso.com/i/#/pages/mainPages/tabsPage/index?token=${token}&channel=${this.$channel}&t=${Date.now()}`
        }
      },0)
    }
  }
</script>

<style lang="less">

</style>
